let progress=document.getElementById("progress_bar");
let total_height=document.body.scrollHeight-window.innerHeight;
window.addEventListener("scroll",function(){
   let progress_height= (window.pageYOffset/total_height)*100;
  progress.style.height=progress_height+"%";
})
